package com.example.demo.domain.repository;

import com.example.demo.api.dto.DepartmentDTO;
import com.example.demo.domain.entity.Department;

import java.util.List;

public interface DepartmentRepository {
    Department getDepartment(Long departmentId);
    List<Department> listDepartment();
    Integer countDepartmentLen();
    Integer insertDepartment(DepartmentDTO departmentDTO);
    Integer removeDepartment(Long departmentId);
    Integer updateDepartment(DepartmentDTO departmentDTO);

    List<Department> listDepartmentByIdList(List<Long> departmentIds);

    void insertByList(List<DepartmentDTO> departments);
}
